<?php

/**
 * Addicionális projektfüggő browser konfigok az alap admin felületen
 * felül.
 * Ezt a fájlt a baseBrowserConfig.php hívja magába amikor lefut.
 */

// classes
addClass('TournamentBrowserContentManager', 'classes/managers/classTournamentBrowserContentManager.php');

// custom BrowserConfig elemek

// versenyekhez a cikkek tallózása
$cfg = new BrowserConfig("tournament_link");
	$sitesAndArticlesElement = new BrowserElement("sites", "article_link", "SiteAndArticleContentManager");
	$sitesAndArticlesElement->setIniParam("label", "txtkey:browser_sitesandarticles");
	$sitesAndArticlesElement->setIniParam("articleTypes", array(ConstHandler::get("ARTICLE_TYPE_NORMAL"), ConstHandler::get("ARTICLE_TYPE_NEWS")));
	$sitesAndArticlesElement->setIniParam("selectSites", false);
	$cfg->setElement($sitesAndArticlesElement);
Browser::registerConfig($cfg);

/* cikkek fckeditorban a sima linkek */ 
$cfg = Browser::getConfig('article_link');

$tournamentsElement = new BrowserElement("tournament", "article_link", "TournamentBrowserContentManager");
	$tournamentsElement->setIniParam("label", "txtkey:browser_tournaments");
	$cfg->setElement($tournamentsElement);

/* cikkek fckeditorban a sima linkek 
$siteId = SiteHandler::getCurrentSiteId();
$currentLang = TextHandler::getCurrentLangcode();
$tournamentLink = ContentUrlManager::getContentGeneratorUrl($siteId, "TournamentArchivePage", $currentLang);
$registrationLink = ContentUrlManager::getContentGeneratorUrl($siteId, "RegistrationPage", $currentLang);
$lostPasswordLink = ContentUrlManager::getContentGeneratorUrl($siteId, "LostPasswordPage", $currentLang);
$basicLinks = array(
	$tournamentLink => 'txtkey:br_archive_title',
	$registrationLink => 'txtkey:br_registration_title',
	$lostPasswordLink => 'txtkey:br_lostpassword_title',
);
$basicLinksElement = new BrowserElement("basic", "article_link", "BasicLinkBrowserContentManager");
	$basicLinksElement->setIniParam("label", "txtkey:browser_basiclinks");
	$basicLinksElement->setIniParam("links", $basicLinks);
	$cfg->setElement($basicLinksElement);
*/